import { Router } from 'express';
import { UserController } from '../project/controller/user.controller';
import { validateUserCreate } from '../project/validation/validate.user.create'

const userRouter = Router();
const userController = new UserController();

userRouter.get('/', userController.getAllUsers);
userRouter.get('/:id', userController.getUserById);
userRouter.post('/', validateUserCreate, userController.createUser);
userRouter.put('/:id', userController.updateUser);
userRouter.delete('/:id', userController.deleteUser);

export default userRouter;